package com.cloudfun.campusshare.common.model.dto;

import com.cloudfun.campusshare.common.constant.FeedbackSource;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * Created by CodeGenerator on 2020/05/27
 */
@Data
@ApiModel("意见反馈DTO")
public class FeedbackDTO {

    @ApiModelProperty("内容")
    @NotEmpty(message = "该字段不允许为空")
    @Length(min = 1, max = 140, message = "该字段限制1-140字")
    private String content;

    @ApiModelProperty("来源")
    @NotNull(message = "来源不允许为空")
    private FeedbackSource source;

}